package Demo5.mapper;

import Demo5.bean.Course;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CourseMapper {
    @Select("select c.id,c.name from course c, stu_cr sc where sc.cid=c.id and sc.sid =#{id}")
    public abstract List<Course> selectById(Integer id);
}
